<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      >

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="resources/css/default.css" rel="stylesheet" type="text/css" />
        <link href="resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
        <title>Sabatec Manutenção &amp; Construção Civil</title>
        <script type="text/javascript">
            function handleLoginRequest(xhr, status, args) {
                if (args.validationFailed || !args.loggedIn) {
                    PF('dlg').jq.effect("shake", {times: 5}, 100);
                }
                else {
                    PF('dlg').hide();
                    $('#loginLink').fadeOut();
                }
            }
        </script>
    </h:head>

    <h:body>

        <div id="top">
            <ui:insert name="top">
                <center>
                    <img src="img/logo_sabate.jpg" width="740" height="266" alt="logo_sabate" />
                </center>
            </ui:insert>
        </div>

        <div id="content" class="center_content">

            <ui:insert name="content">
                <center>
                    <h:form>
                        <p:growl id="growl" showDetail="true" life="4000" />  
                        <h:panelGrid columns="2">
                            Login: <h:inputText value="#{userSabatecBean.usersabatec.user}" />
                            Senha: <h:inputSecret value="#{userSabatecBean.usersabatec.senha}" />
                            <p:commandButton value="Login" action="#{userSabatecBean.getUserSabatecPass(userSabatecBean.usersabatec)}" ajax="false"/>
                        </h:panelGrid>
                    </h:form>
                </center>

            </ui:insert>
        </div>

        <div id="bottom">
            <ui:insert name="bottom">
                <img src="img/background_bottom.jpg" width="6" height="30"  />
            </ui:insert>
        </div>

    </h:body>

</html>
